package ibm_package;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Context_two extends HttpServlet {
	private static final long serialVersionUID = 1L;
    private ServletConfig con;   
    public Context_two() {
        super();
        // TODO Auto-generated constructor stub
    }
    public void init(ServletConfig xconf) throws ServletException{
    	con = xconf;
    }
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		ServletContext conT = con.getServletContext();
		String country = (String) conT.getAttribute("Country");
		
		PrintWriter out = response.getWriter();
		out.println("Country : " + country);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
